package lib.bone.audit.workload.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author kindear
 */
@Data
@ApiModel(value = "分配item")
public class DistributeItem {

    @NotNull
    @ApiModelProperty(value = "分配用户ID",notes = "对应 system-user 表 ID")
    Long userId;

    @Min(value = 0,message = "分配工作量最少为0")
    @ApiModelProperty(value = "分配科研项目工作量",notes = "")
    Double workload;
}
